package com.eb.client;

import com.eb.pojo.MiaoshaUser;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

@FeignClient("shop")
public interface UserClient {
    @RequestMapping(value = "/user/username",method = RequestMethod.GET)
    public MiaoshaUser user();
    @RequestMapping(value = "/user/findById/{id}",method = RequestMethod.GET)
    public MiaoshaUser findById(@PathVariable("id")Long id);

}
